CC=gcc
OBJ=snake
ALL=fun_snake.o main.o

$(OBJ):$(ALL)
	$(CC) $^ -o $@

%.o:%.c
	$(CC) -c $< -o $@

.PHONY:clean

clean:
	@rm -rf $(ALL) $(OBJ)
	@echo "del ok!"
